<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title><?php echo $this->html_meta['page_title']; ?></title>
	
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="keywords" content="<?php echo $this->html_meta['meta_keywords']; ?>" />
	<meta name="description" content="<?php echo trim(strip_tags($this->html_meta['meta_description'])); ?>" />
	<?php 
		if (array_key_exists('robots', $this->html_meta))
		{
			echo '<meta name="robots" content="',$this->html_meta['robots'],'" />',"\r\n";
		}
		
		//if(array_key_exists('canonical', $this->html_meta))
			//echo '<link rel="canonical" href="', $this->html_meta['canonical'],'" />',"\r\n";	 
		
		foreach ($this->css_head as $item) 
			echo '<link rel="stylesheet" type="text/css" href="', $this->config->config['public_url'], $item,'" />',"\r\n";
	
		foreach ($this->javascript_head as $item) 
			echo '<script type="text/javascript" src="',$this->config->config['public_url'], $item,'"></script>',"\r\n";
		
	?>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', '<?php echo $this->google_analytic_code;?>']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<script type="text/javascript">//<![CDATA[
//	var infolink_pid = 251299; var infolink_wsid = 0;
//]]></script>

<!-- Facebook -->
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<!-- Google +1 -->
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>
<!-- Twitter -->
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</head>

<body>
	<div class="header">
		<div class="wrapper">
			<?php echo $header; ?>
		</div>
	</div>
	<div class="breadcrumbs wrapper">
		<?php echo $breadcrumbs; ?>
	</div>
	<div class="main product-detail-main">
		<div class="sidebar-left">
			<?php echo $sidebar_left; ?>
		</div>
		<div class="content"><?php echo $content; ?></div>
		<div class="sidebar-right"><?php echo $sidebar_right; ?></div>
		<div class="cb"></div>
	</div>
	<div class="footer">
		<div class="wrapper">
			<?php echo $footer; ?>
		</div>
	</div>
	<script type="text/javascript" src="http://resources.infolinks.com/js/infolinks_main.js"></script>
	<script type="text/javascript">//<![CDATA[
/*
		jQuery(document).ready(function(){ 
			jQuery('.description').before('<span><!--INFOLINKS_OFF--></span>');
			jQuery('.description').after('<span><!--INFOLINKS_ON--></span>');
			jQuery('#headerimg').before('<span><!--INFOLINKS_OFF--></span>');
			jQuery('#headerimg').after('<span><!--INFOLINKS_ON--></span>');
			jQuery('h1').before('<span><!--INFOLINKS_OFF--></span>');
			jQuery('h1').after('<span><!--INFOLINKS_ON--></span>');
			jQuery('h1').before('<span><!--INFOLINKS_OFF--></span>');
			jQuery('h1').after('<span><!--INFOLINKS_ON--></span>');	
		});
*/		
	//]]></script>

</body>
</html>